import {RouterModule, Routes} from '@angular/router';
import {AppComponent} from "./app.component";
import {LoginComponent} from "@app/module/login/login.component";
import {ProductListComponent} from "@app/test/product-list/product-list.component";
import {MissionControlComponent} from "@app/test/mission-control/mission-control.component";
import {ProductDetailComponent} from "@app/test/product-detail/product-detail.component";
import {NgModule} from "@angular/core";
export const routes: Routes = [
  {
    path: '',
    // redirectTo:'login',
    component: AppComponent,
    pathMatch: 'full'
  },
  {
    path: 'product',
    component: ProductListComponent
  },
  {
    path: 'mission',
    component: MissionControlComponent
  },
  {
    path:'products/:productId',
    component: ProductDetailComponent
  },
  {
    path: 'login',
    component: LoginComponent
  }
];
@NgModule({
  imports: [
    RouterModule.forRoot(routes)
  ],
  exports: [RouterModule],
  declarations: [],
  providers: [],
})
export class AppRoutingModule {
}
